[#include "/admin/common/layout_add.html"]

[#include "/admin/common/images.html"]
[#include "/admin/common/textarea.html"]
[#include "/admin/common/tag.html"]
	
		
[@layout menus="1,49,50" title="添加"/]

[#macro marks]
[/#macro]
[#macro form]



<form role="form" method="post" class="form-horizontal"
      action="${siteurl}admin/article/model_save.htm">


								<div class="form-group">
									<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 名称</label>

									<div class="col-sm-9">
										<input type="text" name="title" class="col-xs-10 col-sm-10"
										placeholder="文章名称" id="form-field-1">
									</div>
								</div>
								<div class="form-group">
									<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 分类</label>
									<div id="uploaderthumber"  class="col-sm-9">
										[@imageinput name="img" /]
									</div>
								</div>
								<div class="form-group">
									<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 分类</label>

									<div class="col-sm-9">
										<select name="catalog.id" class="col-xs-10 col-sm-10">
											[#if list??]
											[#list list as item]
											<option value="${item.id}">${item.name!""}</option>
											[/#list]
											[/#if]
										</select>
									</div>
								</div>
								<div class="form-group">
									<label
									class="col-sm-3 control-label no-padding-right">摘要</label>

									<div class="col-sm-9">
										<textarea style="height: 60px;" type="text" name="introduction"
										class="col-xs-10 col-sm-10" placeholder=" 摘要"
										></textarea>
									</div>
								</div>
								<div class="form-group">
									<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right">描述</label>

									<div class="col-sm-9">
										[@text name="contents" text="" class="col-xs-10 col-sm-10" /]
									</div>
								</div>

								<div class="form-group">
									<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 标签</label>

									<div class="col-sm-9">
										<input id="tag" type="text" name="tag"
										class="col-xs-10 col-sm-10" placeholder="标签" >
									</div>
								</div>
    <div class="clearfix form-actions">
        <div class="col-md-offset-3 col-md-9">
            <button type="submit" class="btn btn-info">
                <i class="ace-icon fa fa-check bigger-110"></i> 保存
            </button>

            &nbsp; &nbsp; &nbsp;
            <button type="reset" class="btn">
                <i class="ace-icon fa fa-undo bigger-110"></i> 重置
            </button>
        </div>
    </div>

    <div class="hr hr-24"></div>


</form>
[/#macro]

[#macro breadcrumb]
<ul class="breadcrumb">
    <li>
        <i class="ace-icon fa fa-home home-icon"></i> <a href="#">首页</a>
    </li>
    <li>
         <a href="${siteurl}admin/article/view_list.htm">列表</a>
    </li>
    <li class="active">添加</li>
</ul>
[/#macro]

[#macro scripts]
<script type="text/javascript">
$(document).ready(function() {
	$('#tag').tagsInput({
		height : '20',
		width : '577',
		defaultText : "标签"
	});

});
</script>
[/#macro]
[#macro links]
<!--脚步及其css 导入路径  -->
[/#macro]